<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01-行内块元素的幽灵空白问题</title>
    <style>
        div {
            width: 200px;
            height: auto;
            /* 1.给父元素的字体大小设置为0，去除字体基线对齐的干扰 */
            /* font-size: 0; */
        }
        span{
            font-size: 30px;
        }
        .box {
            /* 2.设置对齐方式为：bottom、top、middle */
            /* vertical-align: bottom; */
            display: inline-block;
            width: 100px;
            height: 100px;
            background-color: #bfa;
        }
    </style>
</head>

<body>
    <div>
        <div class="box"></div>
        <div class="box"></div>
        <span>llggg</span>
        <div class="box"></div>
    </div>
</body>

</html>